/*
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */

/*
 * Copyright (c) 2014, Joyent, Inc.
 */

.actions .notes-component-container {
  vertical-align: middle;
  display: inline-block;
  .notes-count {
    font-size: 18px;
    padding-top: 4px;
    padding-bottom: 5px;
    padding-left: 10px;
    padding-right: 10px;
  }
}

.notes-component {
  i { margin-right: 6px;}
  a { text-decoration: none; }
  .notes-count {
    background: @btn-default-bg;
    padding: 2px 6px;
    color: @gray-light;
  }
  .notes-count.has-notes {
    color: @brand-success;
  }
  .notes-count.open,
  .notes-count.has-notes.open {
    background: #fff;
  }

  .notes-panel {
    position: absolute;
    width: 280px;
    border-top: #fff;
    background: #FFF;
    box-shadow: 0 3px 3px rgba(0,0,0,0.2);

    &>ul {
      min-height: 220px;
      max-height: 220px;
      overflow-y: auto;
      margin: 0;
      &>li {
        padding: 5px 8px;
        list-style: none;
        margin: 0;
        font-size: 11px;

        .meta>div {
          display: inline-block;
        }
        .meta>.actions {
          float: right;
          .archive { color: @brand-danger; }
        }

        .date { font-size: 10px; color: @gray-light; margin-left: 5px;}
        .arrow {
          display: block;
          height: 12px;
          line-height: 5px;
          height: 6px;
          color: #fafafa;
          // color: red;
          padding-left: 15px;
        }
        .note {
          line-height: 14px;
          padding: 5px;
          background: #fafafa;
          font-size: 12px;
          p { font-size: 12px; padding: 4px; margin-bottom: 0; }
          ul { padding-left: 25px; }
          li { list-style-type: disc }
          h1 { font-size: 14px; margin-top: 0; margin-bottom: 5px; }
          h2 { font-size: 13px; }
          h3 { font-size: 12px; }
          h4,h5,h6 { font-size: 12px; }
        }
      }
      li.no-notes {
        color: @gray-light;
      }

      li.archived {
         opacity: 0.8;
        .author { color: #aaa;}
        .note { color: #aaa;
          text-decoration: line-through;
        }
      }
    }



    form {
      overflow: hidden;
      margin: 0;
      padding: 0;
      width: 100%;
      background: #f8f8f8;

      button {
        background: @btn-info-bg;
        vertical-align: middle;
        border: none;
        display: block;
        width: 100%;
        text-align: center;
        height: 32px;
        color: #fff;
        font-size: 10px;
        text-align: center;
      }

      textarea {
        line-height: 14px;
        font-size: 12px;
        height: 80px;
        width: 100%;
        padding: 10px;
        margin: 0;
        border: none;
        background: transparent;
        outline: none;
      }
      textarea:focus {
        background: #fafafa;
      }
    }
  }

}
